package Cani;
public class G2 extends Operator{
	
	public boolean condition(Nod n){
		if((n.getY()<=getMaxCapacityC2())&&(n.getY()>0))
			return true;
		else return false;
	}
	public Nod action(Nod n){
		Nod clone=new Nod(n);
		clone.setY(0);
		return clone;
	}

}
